/** ****************************************************************************
 * CopyRight (C) 2012 Sharadendu Sinha.
 * Licensing : FreeBSD 
 *
 * @(#) $Id$
 */
package com.sps.signalling.exceptions;

/**
 * Super type for all exceptions in jsignalling. It extends from
 * {@link RuntimeException}
 * 
 * @version 1.1
 * @author sharadendu
 */
public class SignallingException
	extends RuntimeException
{
	private static final long	serialVersionUID			= 1271059136090766379L;
	public final static String	SLOT_HANDLER_NULL			= "Sot handler to a slot cannot be null";
	public final static String	INVOKABLE_NULL				= "Invokable objects passed cannot be null!!!";
	public final static String	SIGNAL_NOT_FOUND			= " signal not found on ";
	public final static String	CONNECTION_NOT_FOUND		= "Connection not found";
	public final static String	INVALID_NAME				= "You must provide a valid name for your invokable !!!";
	public final static String	INVOKABLE_PROVIDER_NULL		= "Invokable provider cannot be null, it is the parent that created this invokable!!!";
	public final static String	INVALID_SOURCE				= "You can only connect to a Signal object; source invokable must be a Signal instance";
	public final static String	INVALID_METHOD_DESCRIPTION	= "Invlaid method description provided";
	public final static String	INVOCATION_EXCEPTION		= "Exception occured while invoking slot method";
	public final static String	INVALID_EXECUTOR			= "Executor objects cannot be null";
	public final static String	NULL_CONNECTION_TYPE		= "InvokableConnectionType cannot be null";
	public final static String	INVALID_CONNECTION_TYPE		= "InvokableConnectionType cannot can only be THREADED while setting Executors";

	public SignallingException()
	{}

	public SignallingException(String message)
	{
		super(message);
	}

	public SignallingException(String message, Throwable t)
	{
		super(message, t);
	}
}
